package com.njtoyo.taxi.admin.mapper.secondary.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.library.Const;
import com.njtoyo.taxi.admin.mapper.secondary.entity.Role;
import com.njtoyo.taxi.admin.rest.wrapper.platform.role.RoleListWrapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author Dell
 * @since 2021-06-18
 */
@Repository
@DS(Const.SECONDARY_DS)
public interface RoleMapper extends BaseMapper<Role> {

    Page<Role> selectByPage(RoleListWrapper roleListWrapper);

    List<Map> getRoleByUserIds(@Param("adminUserIds") List<Long> adminUserIds);
}
